package com.nulldev.util.lang.json;

import java.io.Writer;

public abstract class WriterConfig {
	public static WriterConfig MINIMAL = new WriterConfig() {
		  @Override
		    JsonWriter createWriter(Writer writer) {
		      return new JsonWriter(writer);
		    }
		  };

	/**
	* Write JSON in pretty-print, with each value on a separate line and an indentation of two
	* spaces.
	*/
    public static WriterConfig PRETTY_PRINT = PrettyPrint.indentWithSpaces(2);

	abstract JsonWriter createWriter(Writer writer);
}
